"""
查询历史（一般指的是列表页） PO
"""

from models import POBase
from utils.data_utils.special import ObjectIdStr
from utils.validator_utils.pydantic_validator.field import (
    CharField,
    NormalField,
)


class QueryHistoryPO(POBase):
    """ 查询历史 | PO """

    user_id: ObjectIdStr | None = NormalField(..., title="用户 ID")
    ip: str = CharField(..., title="IP 地址", min_length=7, max_length=15)
    route_unique_id: str = CharField(..., title="路由唯一 ID")
